package collection;

import java.util.*;

/**
 * 说明:
 *
 * @author:SuZhongHe
 * @date:2023/3/3
 **/
public class SortInteger {
    public static void main(String[] args) {
        Random r = new Random();
        List<Integer> o = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            o.add(r.nextInt(100));
        }
        System.out.println( o);
        Collections.sort(o);
        System.out.println(o);
        Collections.reverse(o);
        System.out.println(o);
        System.out.println("o的第一个元素"+o.get(0));
    }
}
